package phoenix.web.locators.naughtyfever.features;

import org.openqa.selenium.By;
import phoenix.web.locators.base.features.MenuLocatorsBase;

/**
 * MenuPage locators for NaughtyFever
 */
public class MenuLocators extends MenuLocatorsBase
{
	/**
	 * Overrides specific locators
	 */
	public MenuLocators()
	{
		// Search menu
		btnSearchNear = By.xpath("//li[@data-type='near_you']");
		btnSearchOnline = By.xpath("//li[@data-type='online']");
		btnSearchRecently = By.xpath("//li[@data-type='new_members']");

		// Activity menu
		linkActivityBrowsedMe = By.xpath("//li[@data-url='/views']/a");
		linkActivityWinkedMe = By.xpath("//li[@data-url='/winks']/a");
		linkActivityFeed = By.xpath("//li[@data-url='/newsFeed']/a");
		linkActivityMessenger = By.xpath("//li[@data-url='/messenger']/a");
		linkActivityFriends = By.xpath("//li[@data-url='/favorites']/a");
		linkFeedDropdownMenu = By.xpath("//*[@id='dataSearchMenu']/a");

		// Top Menu
		linkTopFeed = By.xpath("//a[@class='site-nav-item site-nav-newsfeed']");
		linkSMSChat = By.xpath("//a[@class='site-nav-item site-nav-smschat']");
		linkTopSearch = By.xpath("//a[contains(@class,'site-nav-item site-nav-search')]");
		linkTopMessagedMe = By.xpath("//a[@class='site-nav-item site-nav-messenger']");
		linkTopChatRoom = By.xpath("//a[@class='site-nav-item site-nav-rooms']");
		linkTopMyFriends = By.xpath("//a[@class='site-nav-item site-nav-favorites']");
		linkTopWinkedMe = By.xpath("//a[@class='site-nav-item site-nav-winks']");
		linkTopBrowsedMe = By.xpath("//a[@class='site-nav-item site-nav-views']");

		// Drop down
		blockDropDownMenuFeed = By.xpath("//li[@data-nav-item='newsFeed']//div[@class='b-dropdown-menu active']");
		blockDropDownMenuViews = By.xpath("//li[@data-nav-item='view']//div[@class='b-dropdown-menu active']");
		blockDropDownMenuWinks = By.xpath("//li[@data-nav-item='wink']//div[@class='b-dropdown-menu active']");
		blockDropDownMenuFriends = By.xpath("//li[@data-nav-item='favourite']//div[@class='b-dropdown-menu active']");

		// Sub menu
		btnOpenFeed = By.xpath("//li[@data-nav-item='newsFeed']//div[@class='b-view-more']//a");
		btnOpenViews = By.xpath("//li[@data-nav-item='view']//div[@class='b-view-more']//a");
		btnOpenWinks = By.xpath("//li[@data-nav-item='wink']//div[@class='b-view-more']//a");
		btnOpenFriends = By.xpath("//li[@data-nav-item='favourite']//div[@class='b-view-more']//a");
		btnSeeAll = By.xpath("//div[@class='b-view-more']/a/span");
	}
}
